<!DOCTYPE html>
<html>
<head>
<title>Unit Report</title>
<meta charset="UTF-8">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<script type="text/javascript" src="jslib/jquery-easyui-1.3.1/jquery-1.8.0.min.js"></script>
<script type="text/javascript" src="jslib/jquery-easyui-1.3.1/jquery.easyui.min.js"></script>
<script type="text/javascript" src="jslib/jquery-easyui-1.3.1/locale/easyui-lang-en.js"></script>
<script type="text/javascript" src="jslib/tools.js"></script>
<link rel="stylesheet" href="jslib/jquery-easyui-1.3.1/themes/gray/easyui.css" type="text/css"></link>
<link rel="stylesheet" href="jslib/jquery-easyui-1.3.1/themes/icon.css" type="text/css"></link>
<style type="text/css">
.inputCss {
	font-size: 12px;
	margin: 0;
	padding: 0;
	border: 1px solid #d3d3d3;
	background: #fff;
	line-height:20px;
	height:20px;
	width:300px;
	*height:18px;
	*line-height:18px;
	_height:18px;
	_line-height:18px;
}
</style>
</head>
<script type="text/javascript">
	$(function() {
		$('#UnitScript_panel').panel({   
			  height:350,   
			  title: 'UnitScript'
		}); 
		$('#UnitScriptReport_panel').panel({   
			  height:350,   
			  title: 'UnitScriptReport'   
		});
		$('#ScriptCmdReport_panel').panel({   
			  height:350,   
			  title: 'UnitScriptReport'   
		});
		
		$('#UnitScript_datagrid').datagrid({
			//url : '${pageContext.request.contextPath}/userController/getUser.do',
			fit : true,
			border : false,
			pagination : true,
			rownumbers : true,
			checkOnSelect : false,
			selectOnCheck : false,
			idField : 'id',
			columns : [ [ {
				title : 'No',
				field : 'id',
				width : 150,
				checkbox : true
			}, {
				title : 'UnitScriptName',
				field : 'unitScriptName',
				width : 120
			}, {
				title : 'UploadDateTime',
				field : 'uploadDateTime',
				width : 120
			}, {
				title : 'FileSize',
				field : 'fileSize',
				width : 80
			} ] ],
			toolbar : [ {
				text : 'Add',
				iconCls : 'icon-add',
				handler : function() {
					openAddUnitScriptPage();
				}
			}, '-', {
				text : 'Delete',
				iconCls : 'icon-remove',
				handler : function() {
					moduls_role_removeFun();
				}
			}, '-', {
				text : 'Refresh',
				iconCls : 'icon-reload',
				handler : function() {
					$('#UnitScript_datagrid').datagrid('reload');
				}
			} ]
		});
		
		$('#UnitScriptReport_datagrid').datagrid({
			//url : '${pageContext.request.contextPath}/userController/getUser.do',
			fit : true,
			border : false,
			pagination : true,
			rownumbers : true,
			checkOnSelect : false,
			selectOnCheck : false,
			idField : 'id',
			columns : [ [ {
				title : 'No',
				field : 'id',
				width : 50
			}, {
				title : 'ExecuteDateTime',
				field : 'executeDateTime',
				width : 120
			}, {
				title : 'SeccussCount',
				field : 'seccussCount',
				width : 120
			}, {
				title : 'FailedCount',
				field : 'failedCount',
				width : 80
			}, {
				title : 'ErrorCount',
				field : 'errorCount',
				width : 80
			} ] ],
			toolbar : [  {
				text : 'Refresh',
				iconCls : 'icon-reload',
				handler : function() {
					$('#UnitScriptReport_datagrid').datagrid('reload');
				}
			} ]
		});
		
		$('#ScriptCmdReport_datagrid').datagrid({
			//url : '${pageContext.request.contextPath}/userController/getUser.do',
			fit : true,
			border : false,
			pagination : true,
			rownumbers : true,
			checkOnSelect : false,
			selectOnCheck : false,
			idField : 'id',
			columns : [ [ {
				title : 'No',
				field : 'id',
				width : 50
			}, {
				title : 'ExecuteDateTime',
				field : 'executeDateTime',
				width : 120
			}, {
				title : 'SeccussCount',
				field : 'seccussCount',
				width : 120
			}, {
				title : 'FailedCount',
				field : 'failedCount',
				width : 80
			}, {
				title : 'ErrorCount',
				field : 'errorCount',
				width : 80
			} ] ],
			toolbar : [ {
				text : 'Refresh',
				iconCls : 'icon-reload',
				handler : function() {
					$('#UnitScriptReport_datagrid').datagrid('reload');
				}
			} ]
		});
		
		function openAddUnitScriptPage() {
			$('<div/>').dialog({
				href : 'moduls/addUnitScript.html',
				width : 500,
				height : 180,
				closable : false,
				modal : true,
				title : 'AddUnitScript',
				buttons : [ {
					text : 'save',
					iconCls : 'icon-save',
					handler : function() {
						var d = $(this).closest('.window-body');
						$('#moduls_fun_addUser_addForm').form('submit', {
							url : '${pageContext.request.contextPath}/userController/addUser.do',
							success : function(result) {
								var r = $.parseJSON(result);
								if (r.success) {
									$('#moduls_user_datagrid').datagrid('load');
									d.dialog('destroy');
								}
								$.messager.show({
									title : '提示',
									msg : r.info
								});
							}
						});
					}
				}, {
					text : 'cancel',
					iconCls : 'icon-remove',
					handler : function() {
						$(this).closest('.window-body').dialog('destroy');
					}
				} ],
				onClose : function() {
					$(this).dialog('destroy');
				}
			});
		}

	});
</script>
<body>
<table style="width: 99%"><tr>
	<td width="50%">
		<div id="UnitScript_panel" class="easyui-panel" title="UnitScript"    
        	style="background:#fafafa;" data-options="">  
    <table id="UnitScript_datagrid"></table>  
</div>   
	</td>
	<td width="50%">
		<div id="UnitScriptReport_panel" class="easyui-panel" title="UnitScript"    
        	style="background:#fafafa;" data-options=""> 
    <table id="UnitScriptReport_datagrid"></table>  
</div>     
	</td>
</tr></table>

<table style="width: 99%"> <tr>
	<td width="100%">
		<div id="ScriptCmdReport_panel" class="easyui-panel" title="UnitScript"    
        	style="background:#fafafa;" data-options=""> 
    <table id="ScriptCmdReport_datagrid"></table>  
</div>     
	</td>
</tr></table>
</body>
</html>